package com.xu.modules.service.bo;

import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

/**
 * 邮件发送对象
 *
 * @author xu
 * 2022/7/19 16:35
 */
@Data
public class MailBo {
    @NotBlank(message = "邮箱 不允许为空")
    @Email(message = "请输入正确的邮箱")
    private String email;

    @NotBlank(message = "类型 不允许为空")
    private String type;
}
